import request from '@/utils/request'

// 科室设备关联列表
export function apiRoomDepartmentDeviceLists(params: any) {
    return request.get({ url: '/room.room_department_device/lists', params }, { ignoreCancelToken: true })
}

// 添加科室设备关联
export function apiRoomDepartmentDeviceAdd(params: any) {
    return request.post({ url: '/room.room_department_device/add', params })
}

// 编辑科室设备关联
export function apiRoomDepartmentDeviceEdit(params: any) {
    return request.post({ url: '/room.room_department_device/edit', params })
}

// 删除科室设备关联
export function apiRoomDepartmentDeviceDelete(params: any) {
    return request.post({ url: '/room.room_department_device/delete', params })
}

// 科室设备关联详情
export function apiRoomDepartmentDeviceDetail(params: any) {
    return request.get({ url: '/room.room_department_device/detail', params })
}

//楼栋信息
export function roomDeviceAll(params?: any) {
    return request.get({ url: '/room.room_department_device/deviceAll', params })
}


export function departmentAll(params?: any) {
    return request.get({ url: '/room.room_department_device/departmentAll', params })
}
export function departmentList(params?: any) {
    return request.get({ url: '/room.room_department_device/department', params })
}


export function editFieldItem(params?: any) {
    return request.post({ url: '/room.room_department_device/editField', params })
}

export function apiRoomDepartmentDeviceSave(params?: any) {
    return request.post({ url: '/room.room_department_device/setSave', params })
}

export function roomDepartmentDeviceStatus(params: any) {
    return request.post({ url: '/room.room_department_device/updateStatus', params })
}

export function roomDepartmentDeviceInit(params: any) {
    return request.post({ url: '/room.room_department_device/updateInit', params })
}

export function roomDepartmentDeviceCopy(params: any) {
    return request.post({ url: '/room.room_department_device/copyAdd', params })
}
